package com.xuyuan.designmode.singleton;

/**
 * 懒汉模式
 */
public class Signleton2 {
    private static Signleton2 INSTANCE;

    private Signleton2() {
    }

    public static synchronized Signleton2 getINSTANCE() {
        if (INSTANCE == null) {
            INSTANCE = new Signleton2();
        }
        return INSTANCE;
    }
}


